<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Calico: AprilTags::GLine2D Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Calico
   </div>
   <div id="projectbrief">A visual-inertial calibration library designed for rapid problem construction and debugging.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceAprilTags.html">AprilTags</a></li><li class="navelem"><a class="el" href="classAprilTags_1_1GLine2D.html">GLine2D</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classAprilTags_1_1GLine2D-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AprilTags::GLine2D Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A 2D line.  
 <a href="classAprilTags_1_1GLine2D.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="GLine2D_8h_source.html">GLine2D.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afa1924912e2360ddd8288697333ef9ef"><td class="memItemLeft" align="right" valign="top"><a id="afa1924912e2360ddd8288697333ef9ef"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#afa1924912e2360ddd8288697333ef9ef">GLine2D</a> ()</td></tr>
<tr class="memdesc:afa1924912e2360ddd8288697333ef9ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new line. <br /></td></tr>
<tr class="separator:afa1924912e2360ddd8288697333ef9ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a511054cf51f75c7459488bcf78998754"><td class="memItemLeft" align="right" valign="top"><a id="a511054cf51f75c7459488bcf78998754"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a511054cf51f75c7459488bcf78998754">GLine2D</a> (float slope, float b)</td></tr>
<tr class="memdesc:a511054cf51f75c7459488bcf78998754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new line. <br /></td></tr>
<tr class="separator:a511054cf51f75c7459488bcf78998754"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a086d175b2af15ef5ceb25004b3ba237a"><td class="memItemLeft" align="right" valign="top"><a id="a086d175b2af15ef5ceb25004b3ba237a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a086d175b2af15ef5ceb25004b3ba237a">GLine2D</a> (float dX, float dY, const std::pair&lt; float, float &gt; &amp;pt)</td></tr>
<tr class="memdesc:a086d175b2af15ef5ceb25004b3ba237a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new line. <br /></td></tr>
<tr class="separator:a086d175b2af15ef5ceb25004b3ba237a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c8d58b3871cac68cacb2426f81922f8"><td class="memItemLeft" align="right" valign="top"><a id="a2c8d58b3871cac68cacb2426f81922f8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a2c8d58b3871cac68cacb2426f81922f8">GLine2D</a> (const std::pair&lt; float, float &gt; &amp;p1, const std::pair&lt; float, float &gt; &amp;p2)</td></tr>
<tr class="memdesc:a2c8d58b3871cac68cacb2426f81922f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new line through two points. <br /></td></tr>
<tr class="separator:a2c8d58b3871cac68cacb2426f81922f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a108fcc6d0174cd10c4551983193567"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a5a108fcc6d0174cd10c4551983193567">getLineCoordinate</a> (const std::pair&lt; float, float &gt; &amp;p)</td></tr>
<tr class="separator:a5a108fcc6d0174cd10c4551983193567"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a107272ab70c6283f2c48899ab6fc2c41"><td class="memItemLeft" align="right" valign="top"><a id="a107272ab70c6283f2c48899ab6fc2c41"></a>
std::pair&lt; float, float &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a107272ab70c6283f2c48899ab6fc2c41">getPointOfCoordinate</a> (float coord)</td></tr>
<tr class="memdesc:a107272ab70c6283f2c48899ab6fc2c41"><td class="mdescLeft">&#160;</td><td class="mdescRight">The inverse of getLineCoordinate. <br /></td></tr>
<tr class="separator:a107272ab70c6283f2c48899ab6fc2c41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19ab532413bcdc53ea3e8ec665e69793"><td class="memItemLeft" align="right" valign="top"><a id="a19ab532413bcdc53ea3e8ec665e69793"></a>
std::pair&lt; float, float &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAprilTags_1_1GLine2D.html#a19ab532413bcdc53ea3e8ec665e69793">intersectionWith</a> (const <a class="el" href="classAprilTags_1_1GLine2D.html">GLine2D</a> &amp;line) const</td></tr>
<tr class="memdesc:a19ab532413bcdc53ea3e8ec665e69793"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the point where two lines intersect, or (-1,0) if the lines are parallel. <br /></td></tr>
<tr class="separator:a19ab532413bcdc53ea3e8ec665e69793"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a156a2aa099ff0987020aea5c3a131250"><td class="memItemLeft" align="right" valign="top"><a id="a156a2aa099ff0987020aea5c3a131250"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getDx</b> () const</td></tr>
<tr class="separator:a156a2aa099ff0987020aea5c3a131250"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cfb2a081b02b738b4bc5cf0a96c2a04"><td class="memItemLeft" align="right" valign="top"><a id="a2cfb2a081b02b738b4bc5cf0a96c2a04"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getDy</b> () const</td></tr>
<tr class="separator:a2cfb2a081b02b738b4bc5cf0a96c2a04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb3d484cb11212a5e9e4fa2fd68e8b2f"><td class="memItemLeft" align="right" valign="top"><a id="acb3d484cb11212a5e9e4fa2fd68e8b2f"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getFirst</b> () const</td></tr>
<tr class="separator:acb3d484cb11212a5e9e4fa2fd68e8b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a80d6c0d9c0a41d7f55175dab0c9404"><td class="memItemLeft" align="right" valign="top"><a id="a9a80d6c0d9c0a41d7f55175dab0c9404"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getSecond</b> () const</td></tr>
<tr class="separator:a9a80d6c0d9c0a41d7f55175dab0c9404"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa079ddeafe267a4c96523ceb55a29bb6"><td class="memItemLeft" align="right" valign="top"><a id="aa079ddeafe267a4c96523ceb55a29bb6"></a>
static <a class="el" href="classAprilTags_1_1GLine2D.html">GLine2D</a>&#160;</td><td class="memItemRight" valign="bottom"><b>lsqFitXYW</b> (const std::vector&lt; <a class="el" href="structAprilTags_1_1XYWeight.html">XYWeight</a> &gt; &amp;xyweights)</td></tr>
<tr class="separator:aa079ddeafe267a4c96523ceb55a29bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a04a429e0c6591a9a6779a0341aaa2dd3"><td class="memItemLeft" align="right" valign="top"><a id="a04a429e0c6591a9a6779a0341aaa2dd3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>normalizeSlope</b> ()</td></tr>
<tr class="separator:a04a429e0c6591a9a6779a0341aaa2dd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59f60799540ca6ba6ceac612beb11160"><td class="memItemLeft" align="right" valign="top"><a id="a59f60799540ca6ba6ceac612beb11160"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>normalizeP</b> ()</td></tr>
<tr class="separator:a59f60799540ca6ba6ceac612beb11160"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A 2D line. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a5a108fcc6d0174cd10c4551983193567"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a108fcc6d0174cd10c4551983193567">&#9670;&nbsp;</a></span>getLineCoordinate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float AprilTags::GLine2D::getLineCoordinate </td>
          <td>(</td>
          <td class="paramtype">const std::pair&lt; float, float &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the coordinate of a point (on this line), with zero corresponding to the point on the that is perpendicular toa line passing through the origin and the line. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>calico/third_party/apriltags/apriltags/<a class="el" href="GLine2D_8h_source.html">GLine2D.h</a></li>
<li>calico/third_party/apriltags/src/GLine2D.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
